import model.ArticleImpl;
import model.Author;
import model.AuthorImpl;
import model.Comment;
import model.CommentImpl;
import model.Discussion;
import model.DiscussionImpl;


public class TestArticle extends ArticleImpl {

	public TestArticle(){
		Author author1 = new AuthorImpl();
		Author author2 = new AuthorImpl();
		Author author3 = new AuthorImpl();
		Author author4 = new AuthorImpl();
		Author author5 = new AuthorImpl();
		Author author6 = new AuthorImpl();
	
		author1.setUsername("Author1");
		author2.setUsername("Author2");
		author3.setUsername("Author3");
		author4.setUsername("Author4");
		author5.setUsername("Author5");
		author6.setUsername("Author6");
		
		Discussion dis1 = new DiscussionImpl();
		Discussion dis2 = new DiscussionImpl();
		
		this.addDiscussion(dis1);
		this.addDiscussion(dis2);
		
		Comment comment11 = new CommentImpl();
		comment11.setAuthor(author1);
		Comment comment12 = new CommentImpl();
		comment11.addChildComment(comment12);
		Comment comment13 = new CommentImpl();
		comment13.setAuthor(author5);
		comment11.addChildComment(comment13);
		
		comment12.setAuthor(author2);
		Comment comment22 = new CommentImpl();
		comment22.setAuthor(author2);
		
		Comment comment23 = new CommentImpl();
		comment23.setAuthor(author3);
		comment22.addChildComment(comment23);
		
		Comment comment24 = new CommentImpl();
		comment24.setAuthor(author4);
		comment23.addChildComment(comment24);
		
		
		dis1.addComment(comment11);
		dis2.addComment(comment22);
		
		
		
	}
}
